import { request } from './request'
import { apiUrl } from './api'

const services = {}

Object.entries(apiUrl).forEach(([urlkey, urlValue]) => {
  services[urlkey] = function (options = {}) {
    return request(
      Object.assign({
        url: urlValue
      }, options)
    )
  }
})
export default services
